<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        h3 {
            margin: 10px;
        }

        .box {
            height: 140px;
        }

        .shop {
            float: left;
        }

        img {
            width: 100px;
            height: 100px;
            margin: 10px;
        }

        h4 {
            padding-top: 10px;
        }
    </style>
</head>

<body>
    <div id="buyCar">
        <h3>已选商品</h3>
        <div v-for="(item,index) in shopArr" class="box">
            <div class="shop"><img v-bind:src="item.pic"></div>
            <div class="pr">
                <h4>{{item.name}}</h4>
                <span>{{item.price}}</span>
            </div>
        </div>

    </div>


    <script src="./vue-2.5.21.js"></script>
    <script src="./购物车.js"></script>
</body>

</html>